// api/bioRemovalReportApi.js
import axios from 'axios';

const API_BASE_URL = 'http://localhost:9205'; // 替换为实际的后端API地址

export const fetchBioRemovalReportData = async (dateRange) => {
  try {
    const response = await axios.get(`${API_BASE_URL}/bio-removal-report`, {
      params: {
        startDate: dateRange[0].toISOString().split('T')[0],
        endDate: dateRange[1].toISOString().split('T')[0]
      }
    });
    return response.data;
  } catch (error) {
    throw error;
  }
};
